Repository navigation
docs(adr): ADR-0160 amended — a body outline past its bounds comes in pages (outlineFrom / outlineNext) - #37573
objectstack-fleet[bot] wants to merge 2 commits into
Conversation
… comes in pages D3 gains "Outline pages": the page order, the outlineFrom / outlineNext continuation, the one-state-of-the-body qualifier, the notes on every page and the one refusal for a page that does not exist. D4's input row gains outlineFrom and the anchor / outlineFrom exclusion; its output row gains outlineNext. Point 24 lists the text's own settlement. Claude-Session: https://claude.ai/code/session_01Utp6CaY7QjyzmyWTJGfguK Co-authored-by: Claude <noreply@anthropic.com>
…ge is refused The refusal is for a position with no heading left to list from it, not for a position that is not a page boundary; the cut statement carries counts and a position; an edit between two page calls can also end in that refusal. Claude-Session: https://claude.ai/code/session_01Utp6CaY7QjyzmyWTJGfguK Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head a3f1e40 · 2026-11-26T14:17Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37573 for card #37490: the fourth amendment of ADR-0160, one file, +22/−3. Read against
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Each sentence was checked against the code on D3 "Outline pages" — holds.
D4 input row — holds. Schema: D4 output row — holds. The Amended entry and point 24 — hold.
Nits, none affecting the contract:
All three can ride on #37386 with the alias sentence. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。三个 nit 和别名那句一起放到 #37386。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Adding |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H, |
Requested by Bill · project thread
repo:objectstack#5 · os-bill · session_01Utp6CaY7QjyzmyWTJGfguK
Fixes #37490
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One file,
docs/adr/0160-record-scoped-ai-inquiry.md(+22 / −3). It is the fourth amendment of the record. It writes down what PR #37484 put onmain(merge commit59571b2f07, for card #37233) and carries the scope note on this card (comment 7187692455, N1 of contract review 7187652688). Every sentence was read againstbody-outline.ts,record-context-tools.ts,sentences.tsandrecord-context-tools.zod.tsonmainat41164656.Amendedlist gains a fourth entry naming this card, PR feat(service-record-context): get_record_context lists a long body's outline in pages (outlineFrom / outlineNext) #37484, the readings commit and the three things recorded. It says in words that the amendment rests on no ruling of its own.boundedOutline).outlineNexton its body, and that number asoutlineFromlists the next page. Ananchorreads its section whichever page issued it.outlineFromis a position in the page order of the body as the call reads it, and the tool keeps nothing between calls. An edit between two page calls can make the walk skip a heading or list one twice, with no signal; the anchors on each page stay current.outlineFromabove 0 with no heading left to list from it gets oneRESOURCE_NOT_FOUND(404) answer whatever the reason, sooutlineFrom, likeanchor, cannot show that a pack has a body the caller's schema hides.outlineFrom?: integerand the exclusion: a call that names bothanchorandoutlineFromis refusedVALIDATION_ERROR(400) in step 1, before any gate is judged and any record is read. The output row gainsoutlineNexton the body.Nothing else in the record changes: "The body" paragraph, the TL;DR, the implementation split and every other decision stand as they were.
Read first (by risk): the bullet "One state of the body" in D3 "Outline pages" (the N1 qualifier), then "A page that does not exist" (the list of reasons behind the one 404), then the D4 input row (the exclusion and where it is refused).
Two-minute verification:
pnpm check:adr-symbol-anchors— expected: green, with the newbody-outline.tssymbol anchorboundedOutlinefound.Tests
n/a —
docs/adr/**text; no package, test or schema is touched. The verification is the derived gate set below.Acceptance notes
record-context-tools.zod.tsandbody-outline.tsonmain):outlineFromisz.number().int().min(0).optional(), written asoutlineFrom?: integerwith "outlineFrom0 is the first page";outlineNextis present only when a heading remains that a later page lists; the page order and the skipped over-long heading areboundedOutline's; the 400 and the 404 are the executor's (executeGetRecordContext, step 1 and the body block).Amendedentry and the introduction of point 24.Clause-②: no,Metadata-protocol: none, as claimed.outlineFrompast the last page, or on a body that is no outline" is the 404.mainanswers the first page foroutlineFrom: 0on any body, so the text says "anoutlineFromabove 0 with no heading left to list from it". It does not say "a position that starts no page":mainanswers a page from any position that still has a heading to list, whether or not an earlier answer issued that position, and the text neither promises nor forbids that. The card says "every heading is listed on exactly one page"; the text scopes that to one state of the body, as the scope note asks.carrier: none.mainalso aliasespackandcontextNametocontext, andsectiontoanchor. That sentence predates this card and is outside its claim.carrier: none.docs/adr/**is governed whatever the body says. TheRule-change:line is left out: the diff does not touch.claude/**.docs/adr/**is on the fast track (not published);skip-changesetis declared with this create.Verification
98e42a52is the amendment;a3f1e40a(+3 / −3 inside the new paragraph) makes three of its sentences exact after a second reading against the executor: when a page call is refused, what the cut statement carries, and that an edit between two page calls can also end in that refusal.a3f1e40a:node scripts/pm/dispatch-gates.mjs --commands→ 21 commands (1 path vs merge base41164656).a3f1e40a, each exit code captured before any pipe. On the first head,check:doc-formula-expressionshad exited 3 (PREREQUISITE NOT MET, no built output) until@objectstack/formula...and@objectstack/lint...were built under the verify lock (VERDICT command-exit 0).--ranreconciliation ona3f1e40a:21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3).dispatch-gates --tier:docs/adr/**is the mandatory contract tier; changed lines 25 vs the human-merge threshold 3000: under.overlap-check --branch=HEADbefore each push:VERDICT clean exit 0againstorigin/mainat4116465625and 0 PR heads.Local gates (21, each exit 0 on a3f1e40)
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CaY7QjyzmyWTJGfguK